package com.example.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: tobed
 * @date: 2022/11/16
 * @time: 15:56
 */
@Configuration
public class UploadBean {

    public static final String ZJX_UPLOAD_FILE_NAME = "ZJX_UPLOAD_FILE_NAME";

    public static final String CREATE_SHOP_QUEUE_NAME = "ZJX_ORDER_FILE_NAME";


    @Bean
    Queue queue1(){
        return QueueBuilder.durable(UploadBean.CREATE_SHOP_QUEUE_NAME).build();
    }

    @Bean
    Queue queue(){
        return QueueBuilder.durable(UploadBean.ZJX_UPLOAD_FILE_NAME).build();
    }

}
